package com.zr.common.core.domain.entity;

import com.zr.common.annotation.Excel;
import com.zr.common.core.domain.TreeEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 地区对象 eim_areaselect_area
 * 
 * @author zhongxin
 * @date 2022-10-25
 */
public class EimAreaselectArea extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 地区Id */
    private Long areaId;

    /** 地区编码 */
    @Excel(name = "地区编码")
    private String areaCode;

    /** 地区名 */
    @Excel(name = "地区名")
    private String areaName;

    /** 地区级别（1:省份province,2:市city,3:区县district,4:街道street） */
    @Excel(name = "地区级别", readConverterExp = "1=:省份province,2:市city,3:区县district,4:街道street")
    private Long areaLevel;

    /** 城市编码 */
    @Excel(name = "城市编码")
    private String cityCode;

    /** 城市中心点（即：经纬度坐标） */
    @Excel(name = "城市中心点", readConverterExp = "即=：经纬度坐标")
    private String cityCenter;

    public void setAreaId(Long areaId) 
    {
        this.areaId = areaId;
    }

    public Long getAreaId() 
    {
        return areaId;
    }
    public void setAreaCode(String areaCode) 
    {
        this.areaCode = areaCode;
    }

    public String getAreaCode() 
    {
        return areaCode;
    }
    public void setAreaName(String areaName) 
    {
        this.areaName = areaName;
    }

    public String getAreaName() 
    {
        return areaName;
    }
    public void setAreaLevel(Long areaLevel) 
    {
        this.areaLevel = areaLevel;
    }

    public Long getAreaLevel() 
    {
        return areaLevel;
    }
    public void setCityCode(String cityCode) 
    {
        this.cityCode = cityCode;
    }

    public String getCityCode() 
    {
        return cityCode;
    }
    public void setCityCenter(String cityCenter) 
    {
        this.cityCenter = cityCenter;
    }

    public String getCityCenter() 
    {
        return cityCenter;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("areaId", getAreaId())
            .append("areaCode", getAreaCode())
            .append("areaName", getAreaName())
            .append("areaLevel", getAreaLevel())
            .append("cityCode", getCityCode())
            .append("cityCenter", getCityCenter())
            .append("parentId", getParentId())
            .toString();
    }
}
